<template>
    <div class="Detai">
         <h1>  详细页</h1>
        <div>{{goods}}</div>
        <button @click="backToOne">返回上一页</button>
    </div>
</template>

<script>
export default {
    name:'Detail',
    data() {
        return {
            goods:{},
        }
    },
    methods: {
       backToOne(){
           this.$router.go(-1)
       },
        
    },
    mounted() {
        this.goods=this.$route.params
    },
}
</script>

<style>

</style>